/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 黎鹤舞
 * Date: 2023-11-15
 * Time: 20:26
 */
public class Animal {

    public String name;
    public int age;

    public void eat() {
        System.out.println(this.name +"正在进食......");
    }


    //父类的构造方法
    public Animal(String name, int age) {
        this.name = name;
        this.age = age;
    }
}
